/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.Arrays;

/**
 * <p>Project: jse2303 - RegExp3
 * <p>Powered by webrx On 2023-07-17 17:42:27
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class RegExp3 {
    public static void main(String[] args) {
        String str = "100h6el099lo123";
        System.out.println(str);
        System.out.println(str.replace("0", ""));


        System.out.println(str.replaceAll("\\d", ""));
        System.out.println(str.replaceFirst("\\d", ""));

        //+ {1,}  * {0,}  ? {0,1} {6} {2,10}   [a-z]{2,10}
        String[] ss = "java666html5mysql000888800python".split("\\d+");
        System.out.println(Arrays.toString(ss));
    }
}
